package com.lsx.service.impl;

import com.lsx.dao.UserDao;

import com.lsx.pojo.User;
import com.lsx.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by pc on 2017/11/3.
 */
@Service("UserService")
public class UserServiceImpl implements  UserService {

    @Autowired
    private UserDao userDao;

    public User login(String uname,String pwd) {
        return userDao.login(uname,pwd);
    }

    public int register(User user) {
        return userDao.register(user);
    }
}
